#!/bin/sh

dbus-daemon --session --address=unix:path=$XDG_CONFIG_HOME/bus &

## music player daemon-you might prefer it as a service though
mpd &

## Autolock session
swayidle -w timeout 600 'waylock' &


## Set background
wbg "$XDG_CONFIG_HOME/wallpaper/dwm.jpg" &

## Update contacts in Nextcloud add to crontab
while true; do
	vdirsyncer sync
	sleep 600s
done &

## Check mail add to crontab!
while true; do
	mailsync
	sleep 60s
done &

## Clipboard manager
wl-paste --type=text --watch cliphist store &

## Disable touchpad
# thinkpad-touchpad

## Start terminal
foot -e tmux attach || foot -e tmux &

